package cn.gson.oasys.common.util;

import org.springframework.util.DigestUtils;

public class PasswordEncoder {
	private static final String initPassword = "123456";
	
	
	public static String encodeInitPassword() {
		return encodePassword(initPassword);
	}
	
	/**
	 * 加密字符串
	 * @param encodeStr 原字符串
	 * @return 加密后的字符串
	 */
	public static String encodePassword(String encodeStr) {
		return DigestUtils.md5DigestAsHex(encodeStr.getBytes());
	}
}
